package com.seu.vcampus.view;

import com.seu.vcampus.client.VCampusClient;
import com.seu.vcampus.vo.User;

import javax.swing.*;
import java.awt.*;

/**
 * 商店窗口
 * 独立的商店功能窗口
 * 
 * @author 虚拟校园开发团队
 * @since 2.1.0
 */
public class StoreFrame extends JFrame {
    private VCampusClient client;
    private User currentUser;
    
    public StoreFrame(VCampusClient client, User user) {
        super("校园商店 - " + user.getUsername());
        this.client = client;
        this.currentUser = user;
        
        initializeComponents();
        setupLayout();
        setupEventHandlers();
        
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        setSize(800, 600);
        setLocationRelativeTo(null);
        setLocation(getX() + 50, getY() + 50);
    }
    
    private void initializeComponents() {
        JPanel panel = new JPanel(new BorderLayout());
        panel.add(new JLabel("校园商店功能 - 开发中...", SwingConstants.CENTER), BorderLayout.CENTER);
        add(panel);
    }
    
    private void setupLayout() {
        // 已在initializeComponents中完成
    }
    
    private void setupEventHandlers() {
        // 基础事件处理
    }
}